﻿using Newtonsoft.Json;
using System.Collections.Generic;

namespace ZZDingTalkSDK.ZZDingTalkResponse
{
    public class MoziOrganizationPageOrganizationEmployeePositionsResponse
    {
        /// <summary>
        /// 员工名称
        /// </summary>
        [JsonProperty("employeeName")]
        public string EmployeeName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [JsonProperty("gmtCreate")]
        public string GmtCreate { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [JsonProperty("empGender")]
        public string EmpGender { get; set; }

        /// <summary>
        /// 员工Code
        /// </summary>
        [JsonProperty("employeeCode")]
        public string EmployeeCode { get; set; }

        /// <summary>
        /// 政治面貌
        /// </summary>
        [JsonProperty("empPoliticalStatusCode")]
        public string EmpPoliticalStatusCode { get; set; }

        /// <summary>
        /// 职级
        /// </summary>
        [JsonProperty("empJobLevelCode")]
        public string EmpJobLevelCode { get; set; }

        /// <summary>
        /// 编制
        /// </summary>
        [JsonProperty("empBudgetedPostCode")]
        public string EmpBudgetedPostCode { get; set; }

        /// <summary>
        /// 任职列表
        /// </summary>
        public List<GovEmployeePositionResponse> GovEmployeePositions { get; set; }
    }

    public class GovEmployeePositionResponse
    {
        /// <summary>
        /// 职务层次
        /// </summary>
        [JsonProperty("posJobLevelCode")]
        public string PosJobRankCode { get; set; }

        /// <summary>
        /// 组织内排序
        /// </summary>
        [JsonProperty("orderInOrganization")]
        public int OrderInOrganization { get; set; }

        /// <summary>
        /// 是否为主职务
        /// </summary>
        [JsonProperty("mainJob")]
        public bool MainJob { get; set; }

        /// <summary>
        /// 员工Code
        /// </summary>
        [JsonProperty("employeeCode")]
        public string EmployeeCode { get; set; }

        /// <summary>
        /// 组织机构代码
        /// </summary>
        [JsonProperty("organizationCode")]
        public string OrganizationCode { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [JsonProperty("status")]
        public string Status { get; set; }

        /// <summary>
        /// 职务名称
        /// </summary>
        [JsonProperty("govEmpPosJob")]
        public string GovEmpPosJob { get; set; }

        /// <summary>
        /// 管理
        /// </summary>
        [JsonProperty("manager")]
        public string Manager { get; set; }

        /// <summary>
        /// 任职属性
        /// </summary>
        [JsonProperty("jobAttributesCode")]
        public string JobAttributesCode { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [JsonProperty("gmtCreate")]
        public string GmtCreate { get; set; }

        /// <summary>
        /// 所在内设机构Code
        /// </summary>
        [JsonProperty("empPosInnerInstitutionCode")]
        public string EmpPosInnerInstitutionCode { get; set; }

        /// <summary>
        /// 所在单位Code
        /// </summary>
        [JsonProperty("empPosUnitCode")]
        public string EmpPosUnitCode { get; set; }

        /// <summary>
        /// 虚拟组织Code
        /// </summary>
        [JsonProperty("empPosVirtualOrganizationCode")]
        public string EmpPosVirtualOrganizationCode { get; set; }

        /// <summary>
        /// 传真
        /// </summary>
        [JsonProperty("empPosFaxNo")]
        public string EmpPosFaxNo { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [JsonProperty("govEmpPosAddress")]
        public string GovEmpPosAddress { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [JsonProperty("govEmpPosPhoneNo")]
        public string GovEmpPosPhoneNo { get; set; }
    }
}